class TAddress {
  addressInfo = {
    province: '',
    city: '',
    district: ''
  }
  constructor(data) {
    const { province, city, district } = data.ad_info
    this.addressInfo.province = province
    this.addressInfo.city = city
    this.addressInfo.district = district
    this.address = data.address
    this.category = data.category
    this.point = data.location
    this.tel = data.tel
    this.title = data.title
    this.tId = data.id
  }
}

export default TAddress
